package com.myssm.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myssm.dao.UserDao;
import com.myssm.entity.User;
import com.myssm.service.UserService;
@Service
public class UserServiceImpl implements UserService {

	@Resource(name="userDao")
	private UserDao userDao;
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public boolean addUser(User user) {
		int count=userDao.addUser(user);
		if (count>0) {
			return true;
		}
		return false;
	}

}
